<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>


    <!-- <script>
        let arr, n, K, line;
        line = read_line().split('');
        n = parseInt(line[0]);
        K = parseInt(line[1]);


        arr = read_line().split('');
        let result = {};
        for (let i = 1; i < n - K + 1; i++) {
            let arr = {},
                val, max_val = 0,
                max_key = 0
            for (let i = 0; i < nums.length; i++) {
                val = nums[i]
                if (result[val]) {
                    result[val] = arr[val] + 1
                } else {
                    result[val] = 1
                }
            }
            for (let key in arr) {
                if (arr[key] > max_val) {
                    max_val = arr[key]
                    max_key = key
                }
            }
            parseInt(max_key);
        }
    </script> -->

    <script>
        // class A {
        //     static ds() {
        //         let inst = new this(222);
        //         console.log(inst.rt(), this.name)
        //     }
        // }

        // class B extends A {

        //     constructor(sds) {
        //         super();
        //         this.ds = sds;
        //     }

        //     rt() {
        //         return this.ds
        //     }
        // }

        // B.ds(12);



        function A() {

        }
        A.prototype.ds = function(prop) {
            let inst = new this.constructor(prop);
            console.log(inst.rt(), this.constructor.name);
            return inst;
        }

        function B(prop) {
            this.ds = prop;
        }
        B.prototype = new A();
        B.prototype.constructor = B;
        B.prototype.rt = function() {
            return this.ds;
        }
        console.log(B.prototype.ds(12))
    </script>

</body>

</html>